var express = require("express");
var router = express.Router();
const QuesSpeedController = require("../controller/QuesSpeedController");

//挂载路由

router
  .route("/")
  .post(QuesSpeedController.addQuesSpeed)
  .get(QuesSpeedController.getQuesSpeed);

router.route("/group").get(QuesSpeedController.getQuesSpeedByGroup);

router
  .route("/:id")
  .patch(QuesSpeedController.updateQuesSpeed)
  .get(QuesSpeedController.getQuesSpeedByGroup);

module.exports = router;
